package conan.util;

public class Log
{
    private String sourceClass;
    private LogMaster logMaster;

    public Log(Object o)
    {
        this.sourceClass = o.getClass().toString();
        logMaster = LogMaster.getInstance();
        logMaster.add(this);
    }
    
    public void sendMsg(String message)
    {
        logMaster.sendMsg(sourceClass + ": " + message);
    }

    public String getSourceClass()
    {
        return sourceClass;
    }
}
